package com.gitee.wsl.transform.encode


import com.gitee.wsl.security.encrypt.sample.Caesar
import kotlin.test.Test
import kotlin.test.assertEquals


class CaesarTest {
    @Test
    fun caesarTest() {
        val str = "1f2e9df6131b480b9fdddc633cf24996"

        val encode = Caesar(3).encrypt(str)
        assertEquals("1H2G9FH6131D480D9HFFFE633EH24996", encode)

        val decode = Caesar(3).decrypt(encode)
        assertEquals(str, decode)
    }
}
